package com.bwie.common.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 砍价订单表
 * </p>
 *
 * @author liuxin
 * @since 2025-04-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_bargain_order")
@ApiModel(value="TBargainOrder对象", description="砍价订单表")
public class BargainOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "砍价订单唯一标识")
    @TableId(value = "bargain_order_id", type = IdType.AUTO)
    private Long bargainOrderId;

    @ApiModelProperty(value = "发起砍价的用户标识")
    private Long userId;

    @ApiModelProperty(value = "砍价商品标识")
    private Long goodsSkuId;

    @ApiModelProperty(value = "砍价商品名称")
    private String goodsSkuName;

    @ApiModelProperty(value = "砍价开始时间")
    private LocalDateTime bargainStartTime;

    @ApiModelProperty(value = "砍价结束时间")
    private LocalDateTime bargainEndTime;

    @ApiModelProperty(value = "砍价订单状态")
    private Integer status;

    @ApiModelProperty(value = "分享次数")
    private Integer shareCount;

    @ApiModelProperty(value = "砍价次数")
    private Integer bargainCount;

    @ApiModelProperty(value = "分享链接")
    private String shareUrl;

    @ApiModelProperty(value = "逻辑删除")
    private Integer isDelete;

    @ApiModelProperty(value = "订单创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "订单更新时间")
    private LocalDateTime updateTime;


}
